package xyz.schwi.cels.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author schwi
 * @date 2021/9/29 0029  09:49
 */
@Data
@NoArgsConstructor
public abstract class Base {
    private Long id;
    private String en;
    private List<String> cn;

    public Base(String en, List<String> cn) {
        this.en = en;
        this.cn = cn;
    }

    public abstract String save();

    @Override
    public String toString() {
        return id +
                "\t" + en +
                " 的翻译是 " + cn;
    }
}
